/*
 * @Author: HeAo
 * @Date: 2021-09-30 10:23:41
 * @LastEditTime: 2021-09-30 10:31:03
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day06\1-iterator.js
 * 别乱动！
 */


let iterator = 'hello'[Symbol.iterator]()
console.log(iterator);
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());
console.log(iterator.next());

console.log(String.prototype[Symbol.iterator] === 'helle'[Symbol.iterator]);

String.prototype = {
  [Symbol.iterator]: function () {

  }
}